package com.mxpio.erp.common.purchase.entity;

import java.util.List;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Transient;

import com.mxpio.erp.common.inventory.entity.SupplyChain;
import com.mxpio.erp.common.jpa.model.Partner;

import com.mxpioframework.security.annotation.Dict;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

@Data
@EqualsAndHashCode(callSuper=false)
@Entity
@Table(name = "MB_ERP_PURC_SUPPLY")
@Schema(description="供应商")
public class Supply extends Partner {
	
	private static final long serialVersionUID = 1L;

	@Column(name = "MACHINED_FLAG_")
	@Schema(description = "是否加工商")
	@Dict(dicCode = "ERP_COMMON_YESNO")
	private String machinedFlag;
	@Transient
	private List<SupplyChain> supplyChains;
	
}
